<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/tools/Functional.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_1563a38af0d3a5e4a6330d6d45e9792a.html">tools</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Functional.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_functional_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __FUNCTIONAL_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __FUNCTIONAL_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="tools_8h.html">tools.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> Result, <span class="keyword">class</span> Arg&gt;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structone__function.html">   12</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structone__function.html">one_function</a></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="structone__function.html#af8a1f47b1765532ae1d4e800e30f55ed">   16</a></span>&#160;    <a class="code" href="structone__function.html#af8a1f47b1765532ae1d4e800e30f55ed">one_function</a>() :<a class="code" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">_fun</a>(NULL) {}</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structone__function.html#abfce8ec1bc0d533d0e149c1917d49758">   19</a></span>&#160;    <a class="code" href="structone__function.html#abfce8ec1bc0d533d0e149c1917d49758">one_function</a>(Result(*fun)(Arg)) :<a class="code" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">_fun</a>(fun) {}</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structone__function.html#ab8c54b78a88283e7b6cbf04748b86906">   22</a></span>&#160;    Result <a class="code" href="structone__function.html#ab8c54b78a88283e7b6cbf04748b86906">operator() </a>(Arg arg) {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">_fun</a>) <span class="keywordflow">return</span> (*<a class="code" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">_fun</a>)(arg);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="keywordflow">return</span> Result();</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    }</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structone__function.html#a04a54e0b4366ced92df30c4235def95d">   29</a></span>&#160;    <a class="code" href="structone__function.html">one_function&lt;Result, Arg&gt;</a>&amp; <a class="code" href="structone__function.html#a04a54e0b4366ced92df30c4235def95d">operator= </a>(Result(*fun)(Arg))</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <a class="code" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">_fun</a> = fun;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    }</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structone__function.html#a1e0003c6034101f70291891a707ab1c5">   36</a></span>&#160;    <span class="keyword">operator</span> bool() {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">_fun</a> != NULL);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    }</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">   40</a></span>&#160;    Result(*<a class="code" href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">_fun</a>)(Arg);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;};</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> Result, <span class="keyword">class</span> Arg1, <span class="keyword">class</span> Arg2&gt;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structtow__function.html">   47</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structtow__function.html">tow_function</a></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structtow__function.html#ab6999e81514afa326052e5f9e343f5e3">   50</a></span>&#160;    <a class="code" href="structtow__function.html#ab6999e81514afa326052e5f9e343f5e3">tow_function</a>() :<a class="code" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">_fun</a>(NULL) {}</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structtow__function.html#ad6cbf79ee30f06e31e78353c32e107d3">   53</a></span>&#160;    <a class="code" href="structtow__function.html#ad6cbf79ee30f06e31e78353c32e107d3">tow_function</a>(Result(*fun)(Arg1, Arg2)) :<a class="code" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">_fun</a>(fun) {}</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structtow__function.html#a326c0df017fd3f9ad7256e609a5c2a06">   56</a></span>&#160;    Result <a class="code" href="structtow__function.html#a326c0df017fd3f9ad7256e609a5c2a06">operator() </a>(Arg1 a1, Arg2 a2) {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">_fun</a>) <span class="keywordflow">return</span> (*<a class="code" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">_fun</a>)(a1, a2);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keywordflow">return</span> Result();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structtow__function.html#a7e14262719ce2793b2cded8031c7b1a0">   63</a></span>&#160;    <a class="code" href="structtow__function.html">tow_function&lt;Result, Arg1, Arg2&gt;</a>&amp; <a class="code" href="structtow__function.html#a7e14262719ce2793b2cded8031c7b1a0">operator= </a>(Result(*fun)(Arg1, Arg2))</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;         <a class="code" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">_fun</a> = fun;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structtow__function.html#a11fe9f99bece226548c7c3abb79495e6">   70</a></span>&#160;    <span class="keyword">operator</span> bool() {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">_fun</a> != NULL);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    }</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">   74</a></span>&#160;    Result(*<a class="code" href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">_fun</a>)(Arg1, Arg2);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;};</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span>  Result, <span class="keyword">class</span> Arg1, <span class="keyword">class</span> Arg2, <span class="keyword">class</span> Arg3&gt;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structthree__function.html">   81</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structthree__function.html">three_function</a></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;{</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structthree__function.html#aca04c5b40bce01f10c9214ddb83e3df4">   84</a></span>&#160;    <a class="code" href="structthree__function.html#aca04c5b40bce01f10c9214ddb83e3df4">three_function</a>() :<a class="code" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">_fun</a>(NULL) {}</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structthree__function.html#aabc2f3bb104251ce019ceeb00fe741d3">   87</a></span>&#160;    <a class="code" href="structthree__function.html#aabc2f3bb104251ce019ceeb00fe741d3">three_function</a>(Result(*fun)(Arg1, Arg2, Arg3)) :<a class="code" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">_fun</a>(fun) {}</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structthree__function.html#a73f4ad4417345be875397cab4d4219a1">   90</a></span>&#160;    Result <a class="code" href="structthree__function.html#a73f4ad4417345be875397cab4d4219a1">operator() </a>(Arg1 a1, Arg2 a2, Arg3 a3) {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">_fun</a>) <span class="keywordflow">return</span> (*<a class="code" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">_fun</a>)(a1, a2, a3);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="keywordflow">return</span> Result();</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    }</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structthree__function.html#a2d19035ac04c30362134cc25e3e611b4">   97</a></span>&#160;    <a class="code" href="structthree__function.html">three_function&lt;Result, Arg1, Arg2, Arg3&gt;</a>&amp; <a class="code" href="structthree__function.html#a2d19035ac04c30362134cc25e3e611b4">operator= </a>(Result(*fun)(Arg1, Arg2, Arg3))</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;         <a class="code" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">_fun</a> = fun;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structthree__function.html#aa438c30ef746c1b3f7149d0054a37384">  104</a></span>&#160;    <span class="keyword">operator</span> bool() {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">_fun</a> != NULL);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">  108</a></span>&#160;    Result(*<a class="code" href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">_fun</a>)(Arg1, Arg2, Arg3);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;};</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructtow__function_html_ad6cbf79ee30f06e31e78353c32e107d3"><div class="ttname"><a href="structtow__function.html#ad6cbf79ee30f06e31e78353c32e107d3">tow_function::tow_function</a></div><div class="ttdeci">tow_function(Result(*fun)(Arg1, Arg2))</div><div class="ttdoc">重载构造函数赋值</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00053">Functional.h:53</a></div></div>
<div class="ttc" id="astructtow__function_html"><div class="ttname"><a href="structtow__function.html">tow_function</a></div><div class="ttdoc">二元函数对象</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00047">Functional.h:47</a></div></div>
<div class="ttc" id="astructone__function_html_a78650e351d34dfebe61b2950a14360c4"><div class="ttname"><a href="structone__function.html#a78650e351d34dfebe61b2950a14360c4">one_function::_fun</a></div><div class="ttdeci">Result(* _fun)(Arg)</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00040">Functional.h:40</a></div></div>
<div class="ttc" id="astructone__function_html_af8a1f47b1765532ae1d4e800e30f55ed"><div class="ttname"><a href="structone__function.html#af8a1f47b1765532ae1d4e800e30f55ed">one_function::one_function</a></div><div class="ttdeci">one_function()</div><div class="ttdoc">默认函数置为空</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00016">Functional.h:16</a></div></div>
<div class="ttc" id="astructone__function_html_ab8c54b78a88283e7b6cbf04748b86906"><div class="ttname"><a href="structone__function.html#ab8c54b78a88283e7b6cbf04748b86906">one_function::operator()</a></div><div class="ttdeci">Result operator()(Arg arg)</div><div class="ttdoc">重载调用运算符</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00022">Functional.h:22</a></div></div>
<div class="ttc" id="astructtow__function_html_ab6999e81514afa326052e5f9e343f5e3"><div class="ttname"><a href="structtow__function.html#ab6999e81514afa326052e5f9e343f5e3">tow_function::tow_function</a></div><div class="ttdeci">tow_function()</div><div class="ttdoc">默认函数置为空</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00050">Functional.h:50</a></div></div>
<div class="ttc" id="astructthree__function_html_a73f4ad4417345be875397cab4d4219a1"><div class="ttname"><a href="structthree__function.html#a73f4ad4417345be875397cab4d4219a1">three_function::operator()</a></div><div class="ttdeci">Result operator()(Arg1 a1, Arg2 a2, Arg3 a3)</div><div class="ttdoc">重载调用运算符</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00090">Functional.h:90</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="astructthree__function_html_a2d19035ac04c30362134cc25e3e611b4"><div class="ttname"><a href="structthree__function.html#a2d19035ac04c30362134cc25e3e611b4">three_function::operator=</a></div><div class="ttdeci">three_function&lt; Result, Arg1, Arg2, Arg3 &gt; &amp; operator=(Result(*fun)(Arg1, Arg2, Arg3))</div><div class="ttdoc">重载函数给内部函数指针赋值</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00097">Functional.h:97</a></div></div>
<div class="ttc" id="astructtow__function_html_aa5b712e16ef354dae677aaa65a9b82a1"><div class="ttname"><a href="structtow__function.html#aa5b712e16ef354dae677aaa65a9b82a1">tow_function::_fun</a></div><div class="ttdeci">Result(* _fun)(Arg1, Arg2)</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00074">Functional.h:74</a></div></div>
<div class="ttc" id="astructone__function_html"><div class="ttname"><a href="structone__function.html">one_function</a></div><div class="ttdoc">一元函数对象</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00012">Functional.h:12</a></div></div>
<div class="ttc" id="astructthree__function_html_aca04c5b40bce01f10c9214ddb83e3df4"><div class="ttname"><a href="structthree__function.html#aca04c5b40bce01f10c9214ddb83e3df4">three_function::three_function</a></div><div class="ttdeci">three_function()</div><div class="ttdoc">默认函数置为空</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00084">Functional.h:84</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="astructtow__function_html_a7e14262719ce2793b2cded8031c7b1a0"><div class="ttname"><a href="structtow__function.html#a7e14262719ce2793b2cded8031c7b1a0">tow_function::operator=</a></div><div class="ttdeci">tow_function&lt; Result, Arg1, Arg2 &gt; &amp; operator=(Result(*fun)(Arg1, Arg2))</div><div class="ttdoc">重载函数给内部函数指针赋值</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00063">Functional.h:63</a></div></div>
<div class="ttc" id="astructthree__function_html"><div class="ttname"><a href="structthree__function.html">three_function</a></div><div class="ttdoc">三元函数对象</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00081">Functional.h:81</a></div></div>
<div class="ttc" id="astructthree__function_html_aabc2f3bb104251ce019ceeb00fe741d3"><div class="ttname"><a href="structthree__function.html#aabc2f3bb104251ce019ceeb00fe741d3">three_function::three_function</a></div><div class="ttdeci">three_function(Result(*fun)(Arg1, Arg2, Arg3))</div><div class="ttdoc">重载构造函数赋值</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00087">Functional.h:87</a></div></div>
<div class="ttc" id="astructtow__function_html_a326c0df017fd3f9ad7256e609a5c2a06"><div class="ttname"><a href="structtow__function.html#a326c0df017fd3f9ad7256e609a5c2a06">tow_function::operator()</a></div><div class="ttdeci">Result operator()(Arg1 a1, Arg2 a2)</div><div class="ttdoc">重载调用运算符</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00056">Functional.h:56</a></div></div>
<div class="ttc" id="atools_8h_html"><div class="ttname"><a href="tools_8h.html">tools.h</a></div></div>
<div class="ttc" id="astructone__function_html_abfce8ec1bc0d533d0e149c1917d49758"><div class="ttname"><a href="structone__function.html#abfce8ec1bc0d533d0e149c1917d49758">one_function::one_function</a></div><div class="ttdeci">one_function(Result(*fun)(Arg))</div><div class="ttdoc">重载构造函数赋值</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00019">Functional.h:19</a></div></div>
<div class="ttc" id="astructone__function_html_a04a54e0b4366ced92df30c4235def95d"><div class="ttname"><a href="structone__function.html#a04a54e0b4366ced92df30c4235def95d">one_function::operator=</a></div><div class="ttdeci">one_function&lt; Result, Arg &gt; &amp; operator=(Result(*fun)(Arg))</div><div class="ttdoc">重载函数给内部函数指针赋值</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00029">Functional.h:29</a></div></div>
<div class="ttc" id="astructthree__function_html_a0c4f7e6d79a83cfc7c4ce8a34a035105"><div class="ttname"><a href="structthree__function.html#a0c4f7e6d79a83cfc7c4ce8a34a035105">three_function::_fun</a></div><div class="ttdeci">Result(* _fun)(Arg1, Arg2, Arg3)</div><div class="ttdef"><b>Definition:</b> <a href="_functional_8h_source.html#l00108">Functional.h:108</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
